<template>
  <div></div>
</template>
<script>
export default {
  methods: {
    /**
     * msg     提示信息
     * url     跳转的页面地址
     */
    modal(msg, url) {
      uni.showModal({
        title: "提示",
        content: msg,
        success: function(res) {
          if (res.confirm) {
            uni.reLaunch({
              url
            });
          } else if (res.cancel) {
            uni.navigateBack({
              delta: 1
            });
          }
        }
      });
    }
  }
};
</script>
<style lang='less' scoped>
</style>